<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<jsp:include page="/common.jsp"></jsp:include>
</head>
<body>
${title }
<form id="form" class="form-inline well" action="buyPlan?save" method="post">
		<input type="hidden" name="id" value="${t.id }">
		<label><span class="span1">代码:</span>
			<input type="text" name="code" class="input-medium" value="${t.code }">
		</label>
		<label><span class="span1">来源:</span>
			<input type="text" name="buy_from" class="input-medium" value="${t.buy_from }">
		</label>
		<label><span class="span1">名称:</span>
			<input type="text" name="buy_name" class="input-medium" value="${t.buy_name }">
		</label>
		<label><span class="span1">采购时间:</span>
			<input type="text" name="buy_date" class="input-medium" value="<fmt:formatDate value="${t.buy_date }" pattern="yyyy-MM-dd"/>" class="Wdate" onfocus="WdatePicker()">
		</label>
		<label><span class="span1">制单时间:</span>
			<input type="text" name="make_date" class="input-medium" value="<fmt:formatDate value="${t.make_date }" pattern="yyyy-MM-dd"/>" class="Wdate" onfocus="WdatePicker()">
		</label>
		<label><span class="span1">状态:</span>
			<input type="text" name="status" class="input-medium" value="${t.status }">
		</label>
		<div class="control-group">
                <div class="controls">
                    <c:if test="${status==view}">
                        <button class="btn btn-primary" type="submit">保存</button>
                    </c:if>
                    <a class="btn btn-primary" onclick="go('buy/buyPlan?list')">返回</a>
                </div>
         </div>
</form>
</body>
</html>